home *** CD-ROM | disk | FTP | other *** search
/ The Best of Down Under Games / The Best of Down Under Games.iso / 3dfx Screen Savers / VoodooLights / Sources / input.c < prev    next >
C/C++ Source or Header  |  1997-07-10  |  404b  |  26 lines

  1. include <windows.h>
  2.  
  3. #include "defines.h"
  4. #include "input.h"
  5. #include "win.h"
  6.  
  7. extern Bool wireFrame ;
  8.  
  9. void input_HandleKeyboard()
  10. {
  11.     if( !win_kbhit() ) return ;
  12.     else {
  13.         int code = win_getch() ;
  14.     
  15.         switch( code ) {
  16.             case 'q':
  17.             case 'Q':
  18.             case VK_ESCAPE:    win_DestroyWindow();
  19.                             break ;            
  20.             case 'w':
  21.             case 'W':    wireFrame = ! wireFrame ;
  22.                         break ;
  23.     
  24.         }
  25.     }
  26. }